
using System.ComponentModel.DataAnnotations.Schema;

namespace GSOrganization.Application;

public abstract class SysCheckDTO : BaseService
    {//如果不想生成表，就加abstract
        public SysCheckDTO()
        {
            if (!string.IsNullOrWhiteSpace(UserId))
            {
                CreateUserId = UserId;
                CreateUserName = UserName;
            }
        

            IsDel = false;
            CreatedTime = DateTime.Now;
            Id = Guid.NewGuid().ToString("N");

        }
        [Column(TypeName = "datetime")]
        [Required]
        public DateTime CreatedTime { get; set; }
        [Column(TypeName = "datetime")]
        [Required]
        public DateTime UpdatedTime { get; set; }

        [Key()]
        [StringLength(36)]
        public string Id { get; set; }
        /// <summary>
        /// 是否删除；false：不删除；true：删除；
        /// </summary> 
        public bool IsDel { get; set; }
        [StringLength(36)]
        public string CreateUserId { get; set; }
        [StringLength(36)]
        public string CreateUserName { get; set; }
        [StringLength(36)]
        public string UpdateUserId { get; set; }


        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(256)]
        public string Name { get; set; }

        /// <summary>
        /// 审核结论
        /// </summary> 
        [StringLength(128)]
        public string CheckResult { get; set; }

        /// <summary>
        /// 审核意见
        /// </summary>
        [StringLength(518)]
        public string CheckContent { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        [StringLength(36)]
        public string CheckPerson { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        [Column(TypeName = "datetime")]
        public Nullable<System.DateTime> CheckDate { get; set; }

        /// <summary>
        /// 状态：通过、不通过
        /// </summary>
        [StringLength(32)]
        public string MyStage { get; set; }

    }

